<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ajax同步异步</title>
    <!--<script src="/Vue/vue.js"></script>-->
    <!--<script src="/Vue/vue-router.js"></script>-->
    <!--<script src="/axios/axios.js"></script>-->

    <script src="../../Vue/vue.js"></script>
    <!--<script src="../../Vue/vue-router.js"></script>-->
    <script src="../../axios/axios.js"></script>
</head>
<body>
<div id="app">
    <div v-for="{item,index} in user">
        <div>账户：{{item.phoneNumber}}</div>
        <div>密码：{{item.password}}</div>
    </div>
</div>
</body>
<script>
    var app = new Vue({
        el: "#app",
        data:{
            user: [
                {phoneNumber: "1", password: "2"}
            ]
            // phoneNumber: "2",
            // password: "2"
        },
        methods: {},
        // created() {
        //     axios.get("http://127.0.0.1:8090/login", {
        //         params: {
        //             phoneNumber: this.phoneNumber,
        //             password: this.password
        //         }
        //     })
        // }
    })
</script>
</html>